package com.open.capacity.controller;

import com.open.capacity.common.web.Result;
import com.open.capacity.model.BusinessData;
import com.open.capacity.service.RegisterBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/business")
public class BusinessRegisterController {
    @Autowired
    private RegisterBusinessService register;

    @PostMapping("/register")
    public Result add(BusinessData businessData){
       String result=register.add(businessData);
        return Result.succeed(result,"待审核");
    }
}
